package com.lindroy.repository

import com.lindroy.entity.Employee
import org.springframework.data.jpa.repository.JpaRepository
import org.springframework.stereotype.Repository

/**
 * @author Lin
 * @date 2019/10/10
 * @function
 * @Description
 */

@Repository
interface EmployeeRepo: JpaRepository<Employee, Int> {
    fun findByLastName(lastName: String): List<Employee>?

    fun findByFirstName(firstName: String): List<Employee>?

//    fun findByPage(pageNo:Int,pageSize:Int): List<Employee>?

//    fun insert(employee: Employee)

//    fun deleteEmployee():Boolean

}